package com.duotai;

public class StudentTest {
    public static void main(String[] args) {
        Student shiti = new PhysicalCourse();
        Student online = new OnlineClass();
        shiti.homework();
        shiti.homework();

        Student[] arr = {shiti,online};
        for (int i = 0; i < arr.length; i++) {
            arr[i].studyWay();
        }
    }
}
